package ee.battleship.classes;

public class Fleet {
	private int id;
	private int size;
	private int top;
	private int left;
	private int orientation;
	private int health;
	
	public Fleet(int id, int size, int top, int left, int orientation) {
		this.id = id;
		this.size = size;
		this.top = top;
		this.left = left;
		this.orientation = orientation;
		this.health = size;
	}
	
	public int hitConfirmed() {
		this.health--;
		if (this.health > 0) {
			return 1;
		}
		return 2;
	}
	
	public int getId() {
		return id;
	}
	
	public int getTop() {
		return top;
	}
	
	public int getLeft() {
		return left;
	}
	
	public int getSize() {
		return size;
	}
	
	public int getOrientation() {
		return orientation;
	}
	
	public int getHealth() {
		return health;
	}
	
}